import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import api from './api'

const app = createApp(App)
//在实例上绑定属性
app.config.globalProperties.$api = api

//路由挂载
app.use(router)

app.mount('#app')
